﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Dove.aspx.vb" Inherits="TecnoHouse.Dove" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&key=<%=apikey %>"></script>
    <script type="text/javascript">
        var geocoder;
        var map;
        function initialize() {
            geocoder = new google.maps.Geocoder();
            var latlng = new google.maps.LatLng(41.114409, 16.495285);
            var myOptions = {
                zoom: 10,
                center: latlng,
                mapTypeId: google.maps.MapTypeId.ROADMAP
            }
            map = new google.maps.Map(document.getElementById("map"), myOptions);
        }

        function codeAddress() {
            geocoder.geocode({ 'address': "Corso Gramsci 16 Ruvo di Puglia" }, function(results, status) {
                if (status == google.maps.GeocoderStatus.OK) {
                    map.setCenter(results[0].geometry.location);
                    var marker = new google.maps.Marker({
                        map: map,
                        position: results[0].geometry.location
                    });
                    map.setZoom(18);
                }
            });
        }

        $(function() {
            initialize();
            codeAddress();
        });
    </script>   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" runat="server">
    <h3><span class="icon dove"></span><span><%=pagetitle%> <em>-</em></span>Dove Siamo</h3>
    <div class="section">
        <p><b><%=pagetitle%></b> si trova al civico 16 di corso Gramsci, a Ruvo di Puglia, in provincia di Bari. <br />
        Sotto trovate la mappa</p>
        <div class="mapwrap">
            <div id="mapcontainer" style="width: 590px">
                <div id="map"></div>
            </div>
        </div>
    </div>
</asp:Content>
